﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EditField.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.Pre_Field.EditField" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<title>动态页面模板</title>
<link href="../css/control.css" rel="stylesheet" type="text/css" media="all" />
<script language="javascript">
window.onload = function () {
    var menu_m_title = window.parent.menu["core"]["text"];
    document.getElementById("menu_main_title").innerHTML = menu_m_title + " > 分表设置";

    changeddl();
}
function changeddl(){
    var htmltype = "<%=htmlType%>";
    var ddlobj = document.getElementById("ddlHtmltype");
    if (ddlobj.options[ddlobj.selectedIndex].value == htmltype) {
        document.getElementById("spanHtmltype").style.display = "";
    }
    else {
        document.getElementById("spanHtmltype").style.display = "none";
    }        
}
</script>
</head>
<body>
<div class="frmstatic" style="display:block">
    <span class="frmbar" style="margin:0 12px;"></span><span class="frmbar" style="margin:0 11px;"></span>
    <div class="controls">
        <table cellspacing="0" cellpadding="0" border="0" width="100%">
          <tr>
            <td align"left">
                <table>
                    <tr>
                        <td><img src="../images/maintenance_32x32.gif" width="16" height="16" /></td>
                        <td><label id="menu_main_title"></label></td>
                    </tr>
                </table>
            </td>
            <td align="right">
                <span>操作 > </span>
                <a href='./EditField.aspx?t=add'>添加字段</a>
                <a href='javascript:window.history.back();'>返回</a> 
            </td>
          </tr>
        </table>
    </div>
    <span class="frmbar" style="margin:0 11px;"></span><span class="frmbar" style="margin:0 12px; "></span>
</div>


<div class="frmstatic" style="display:block">
 <table width="100%" border="0" cellpadding="10" cellspacing="0">
   <tr valign="top">
    <td valign="top">
    
    <form id="form1" runat="server">
     <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#d2e6fa">
       <tr valign="top">
        <td valign="top">


          <table width="100%"  border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#ecf5ff">

            <tr>
              <td width="145" align="right" nowrap bgcolor="#F4FBFF">分表后缀名:</td>
              <td bgcolor="#F4FBFF">
                  <asp:DropDownList ID="ddlTablesPostfix" runat="server"></asp:DropDownList>   
               </td>
            </tr>
            
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">字段名称:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtColumn" runat="server" CssClass="input" Width="206px"></asp:TextBox>           
               </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">字段类型:</td>
              <td bgcolor="#F4FBFF">   
                  <asp:DropDownList ID="ddlColtype" runat="server"></asp:DropDownList>    
               </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">字段长度:</td>
              <td bgcolor="#F4FBFF">   
                  <asp:TextBox ID="txtLength" runat="server" CssClass="input" Width="100px"></asp:TextBox> 
                  0为最大值
               </td>
            </tr>
            
            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">字段标题:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtTitle" runat="server" CssClass="input" Width="206px"></asp:TextBox>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">绑定Html控件类型:</td>
              <td bgcolor="#F4FBFF">
                  <asp:DropDownList ID="ddlHtmltype" runat="server"></asp:DropDownList>   
                  <span id="spanHtmltype" style=" display:block;">
                    <asp:DropDownList ID="ddlBindclslist" runat="server"></asp:DropDownList>  
                    <asp:CheckBox ID="cbxIsbindsub" runat="server" Text="是否绑定子项" />
                  </span>
              </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">绑定Html控件属性:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtHtmldepth" runat="server" CssClass="input" Width="206px"></asp:TextBox> 
                  高 * 宽 (高和宽可为空但*必须填写，编辑器不能用百分号)
              </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">默认值:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtDefaultValue" runat="server" CssClass="input" Width="506px" Height="100px" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>

            <tr>
              <td align="right" nowrap bgcolor="#F4FBFF">排序数字:</td>
              <td bgcolor="#F4FBFF">
                  <asp:TextBox ID="txtOrder" runat="server" CssClass="input" Width="100px"></asp:TextBox> 
                  为编辑内容时显示扩展字段的顺序
              </td>
            </tr>
            
            <tr>
              <td bgcolor="#F4FBFF">&nbsp;</td>
              <td bgcolor="#F4FBFF">
                <asp:HiddenField ID="hidAction" runat="server" />
                <asp:Button BackColor="#F4FBFF" CssClass="bt" ID="Button_update" runat="server" Text="更新设置" onclick="Button_update_Click" />
              </td>
            </tr>
          </table>
          
          
       
        </td>
      </tr>
    </table>
    </form>

    </td>
  </tr>
 </table>
</div>
</body>
</html>

